计算机与现代化 ›› 2013, Vol. 1 ›› Issue (4): 57-59.doi: 10.3969/j.issn.1006-2475.2013.04.014

• 软件工程 • 上一篇    下一篇

DML触发器保持数据库完整性应用研究

褚龙现   

  1. 平顶山学院软件学院,河南 平顶山 467000
  • 收稿日期:2012-12-11 修回日期:1900-01-01 出版日期:2013-04-17 发布日期:2013-04-17

Application Research on DML Triggers in Maintaining Database Integrity

CHU Long-xian   

  1. Software College, Pingdingshan University, Pingdingshan 467000, China
  • Received:2012-12-11 Revised:1900-01-01 Online:2013-04-17 Published:2013-04-17

摘要: 对数据进行频繁的更新操作可能破坏数据库的完整性,合理设计触发器可以有效保护数据。本文讨论在SQL Server 2005中通过DML触发器技术实现数据的完整性控制机制,重点论述DML触发器工作原理和实现过程,并结合实例分析设计触发器的基本步骤。测试结果表明,触发器的应用可提高系统性能,很好地维护数据库的完整性。

关键词: 数据库, 完整性, 触发器, SQL Server

Abstract: Frequently updating data may undermine the integrity of database, and trigger properly designed can protect data effectively. The paper discusses the basic steps of data integrity control mechanism according to DML trigger technology in SQL Server 2005. It focuses on DML trigger work principle and implementation process with examples of triggers design. The test results show that the application of trigger improves the system performance and maintains the integrity of database.

Key words: database, integrity, trigger, SQL Server

中图分类号: